/**
 * 
 */
package com.xinghou.platform.dao.main;

import java.util.List;

import org.springframework.data.geo.Point;

import com.xinghou.platform.model.main.StoreLocationGeo;

/**
 * 
 * @author xuzhen
 *
 */
public interface StoreLocationMONGO {
	
	/*public void insert(StoreLocationGeo storeLocationGeo);*/

	/*public StoreLocationGeo findOne(int id);*/
	
	/*public StoreLocationGeo findOnebyStoreid(int storeid);*/

	/*public List<StoreLocationGeo> findAll();*/

	/**
	 * 球面
	 * @param point
	 * @param orderFeild null:距离升序；"_id":注册时间降序；"lastLoginTime":登录时间降序
	 * @param limit
	 * @param maxDistance 0.001:大约6km半径范围
	 * @return
	 */
	public List<StoreLocationGeo> nearSphere(Point point,int limit,int skip,double maxDistance);
	/**
	 * 平面
	 * @param point
	 * @param sex
	 * @param orderFeild null:距离升序；"_id":注册时间降序；"lastLoginTime":登录时间降序
	 * @param limit
	 * @param maxDistance 0.001:大约6km半径范围
	 * @return
	 */
	/*public List<StoreLocationGeo> near(Point point, String orderFeild, int limit, double maxDistance);*/
	
	/**
	 * 球面，无序
	 * @param point
	 * @param sex
	 * @param orderFeild
	 * @param limit
	 * @param radius 0.001:大约6km半径范围
	 * @return
	 */
	/*public List<StoreLocationGeo> withinSphere(Point center, String orderFeild, int limit, double radius);*/

	/**
	 * 平面，无序
	 * @return
	 */
	/*public List<StoreLocationGeo> within(Point center,String orderFeild, int limit, double radius);*/

	public boolean update(StoreLocationGeo storeLocationGeo);
	
}
